(global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/sms-verify-popup/index" ], {
    "059f": function(e, n, t) {},
    "28de": function(e, n, t) {
        (function(e, a) {
            var r = t("4ea4").default;
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.default = void 0;
            var o = r(t("a34a")), u = r(t("c973")), c = t("fd0e"), i = t("665c"), l = t("48b8"), s = t("cee8"), d = t("f727"), f = t("3be3"), p = {
                setup: function(n, t) {
                    var r = (0, i.useState)(), p = r.userInfo, v = (r.systemInfo, t.emit);
                    (0, c.onBeforeMount)(function() {
                        v("loaded", {
                            open: j
                        });
                    });
                    var h, m = "0", b = "1", x = "2", g = (0, c.computed)(function() {
                        return y.phone_no || p.value.phone;
                    }), _ = (0, c.computed)(function() {
                        var e, n;
                        return "".concat(null === (e = g.value) || void 0 === e ? void 0 : e.slice(0, 3), "****").concat(null === (n = g.value) || void 0 === n ? void 0 : n.slice(7));
                    }), y = (0, c.reactive)({
                        captcha: "",
                        receivePhone: "",
                        request_id: "",
                        scene: 1,
                        phone_no: ""
                    }), w = (0, c.ref)(60), S = (0, c.computed)(function() {
                        return w.value ? "去发送" : "重新获取验证码";
                    }), k = (0, c.ref)(null), $ = (0, c.ref)(null), C = function() {
                        var e = (0, u.default)(o.default.mark(function e() {
                            var n, t, a, r, u;
                            return o.default.wrap(function(e) {
                                for (;;) switch (e.prev = e.next) {
                                  case 0:
                                    return (0, s.$loading)(), n = {
                                        request_id: y.request_id,
                                        phone_no: g.value,
                                        scene: y.scene
                                    }, y.phone_no && (n.account_id = -1), e.next = 5, (0, d.getSMSUpResult)({
                                        args: JSON.stringify(n)
                                    });

                                  case 5:
                                    if (t = e.sent, s.$loading.hide(), 0 === t.ret) {
                                        e.next = 10;
                                        break;
                                    }
                                    return (0, s.$warn)({
                                        title: t.msg
                                    }), e.abrupt("return");

                                  case 10:
                                    if (t.data.state !== b) {
                                        e.next = 16;
                                        break;
                                    }
                                    return null === (a = k.value) || void 0 === a || a.hide(), (0, s.$success)({
                                        title: "验证成功"
                                    }), e.abrupt("return");

                                  case 16:
                                    t.data.state === x ? (null === (r = k.value) || void 0 === r || r.hide(), null === (u = $.value) || void 0 === u || u.open({
                                        confirmText: "",
                                        footerStyle: "padding: 0px;border-top: 1px solid rgba(0,0,0,0.09);"
                                    })) : t.data.state === m && (0, s.$toast)({
                                        title: "进行中"
                                    });

                                  case 17:
                                    return e.abrupt("return");

                                  case 18:
                                  case "end":
                                    return e.stop();
                                }
                            }, e);
                        }));
                        return function() {
                            return e.apply(this, arguments);
                        };
                    }(), O = function() {
                        a.sendSms ? a.sendSms({
                            phoneNumber: y.receivePhone,
                            content: y.captcha,
                            fail: function() {
                                (0, s.$warn)({
                                    title: "拉起短信失败"
                                });
                            }
                        }) : (0, s.$warn)({
                            title: "版本过低，请手动发送短信"
                        });
                    }, P = function() {
                        var e = (0, u.default)(o.default.mark(function e() {
                            var n, t, a, r = arguments;
                            return o.default.wrap(function(e) {
                                for (;;) switch (e.prev = e.next) {
                                  case 0:
                                    return n = r.length > 0 && void 0 !== r[0] && r[0], (0, s.$loading)(), t = {
                                        phone_no: g.value,
                                        scene: y.scene
                                    }, y.phone_no && (t.account_id = -1), e.next = 6, (0, d.getSMSUpCaptcha)(t);

                                  case 6:
                                    if (a = e.sent, s.$loading.hide(), 0 === a.ret) {
                                        e.next = 11;
                                        break;
                                    }
                                    return (0, s.$warn)({
                                        title: "获取失败"
                                    }), e.abrupt("return", !1);

                                  case 11:
                                    return n && (0, s.$success)({
                                        title: "获取成功"
                                    }), I(a.data), q(), e.abrupt("return", !0);

                                  case 15:
                                  case "end":
                                    return e.stop();
                                }
                            }, e);
                        }));
                        return function() {
                            return e.apply(this, arguments);
                        };
                    }(), I = function(e) {
                        var n = e.captcha, t = e.sms_address, a = e.count_down, r = e.request_id;
                        y.captcha = null != n ? n : "", y.receivePhone = null != t ? t : "", w.value = null != a ? a : 60, 
                        y.request_id = r;
                    }, q = function() {
                        h && clearInterval(h), h = setInterval(function() {
                            w.value <= 0 ? h && clearInterval(h) : w.value = w.value - 1;
                        }, 1e3);
                    }, J = function() {
                        var e;
                        null === (e = k.value) || void 0 === e || e.open({
                            closeWithTitle: "请进行身份验证",
                            confirmText: "",
                            isVertical: !0,
                            bodyStyle: "padding: 28rpx 20rpx 52rpx 32rpx;",
                            footerStyle: "padding: 0rpx 52rpx;"
                        }).then(function() {
                            h && clearInterval(h);
                        });
                    }, j = function() {
                        var e = (0, u.default)(o.default.mark(function e(n) {
                            return o.default.wrap(function(e) {
                                for (;;) switch (e.prev = e.next) {
                                  case 0:
                                    return (0, l.isEmpty)(n) || (y.phone_no = n.phone_no, y.scene = n.scene), e.next = 3, 
                                    P();

                                  case 3:
                                    if (e.sent) {
                                        e.next = 6;
                                        break;
                                    }
                                    return e.abrupt("return");

                                  case 6:
                                    J();

                                  case 7:
                                  case "end":
                                    return e.stop();
                                }
                            }, e);
                        }));
                        return function(n) {
                            return e.apply(this, arguments);
                        };
                    }();
                    return Object.assign({
                        encryptedPhone: _,
                        smsConfig: y,
                        countdown: w,
                        authCodeText: S,
                        smsVerifyDialogRef: k,
                        verifyFailedPopupRef: $,
                        handleCopy: function() {
                            e.setClipboardData({
                                data: y.captcha
                            });
                        },
                        validSms: C,
                        sendOrGetSms: function() {
                            0 === w.value ? P(!0) : O();
                        },
                        handleRetry: function() {
                            var e;
                            null === (e = $.value) || void 0 === e || e.hide(), j();
                        },
                        contactService: function() {
                            y.phone_no ? e.makePhoneCall({
                                phoneNumber: "10103636"
                            }) : (0, f.callCustomerService)();
                        },
                        handleKnow: function() {
                            var e;
                            null === (e = $.value) || void 0 === e || e.hide();
                        }
                    }, {
                        open: j
                    });
                }
            };
            p.components = Object.assign({
                HDialog: function() {
                    t.e("components/h-dialog/index").then(function() {
                        return resolve(t("97ce"));
                    }.bind(null, t)).catch(t.oe);
                }
            }, p.components);
            var v = p;
            n.default = v;
        }).call(this, t("543d").default, t("bc2e").default);
    },
    "2a92": function(e, n, t) {
        t.d(n, "b", function() {
            return a;
        }), t.d(n, "c", function() {
            return r;
        }), t.d(n, "a", function() {});
        var a = function() {
            this.$createElement;
            this._self._c;
        }, r = [];
    },
    8802: function(e, n, t) {
        var a = t("059f");
        t.n(a).a;
    },
    a1bc: function(e, n, t) {
        t.r(n);
        var a = t("2a92"), r = t("a227");
        for (var o in r) [ "default" ].indexOf(o) < 0 && function(e) {
            t.d(n, e, function() {
                return r[e];
            });
        }(o);
        t("8802");
        var u = t("f0c5"), c = Object(u.a)(r.default, a.b, a.c, !1, null, "6470b7ef", null, !1, a.a, void 0);
        n.default = c.exports;
    },
    a227: function(e, n, t) {
        t.r(n);
        var a = t("28de"), r = t.n(a);
        for (var o in a) [ "default" ].indexOf(o) < 0 && function(e) {
            t.d(n, e, function() {
                return a[e];
            });
        }(o);
        n.default = r.a;
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/sms-verify-popup/index-create-component", {
    "components/sms-verify-popup/index-create-component": function(e, n, t) {
        t("543d").createComponent(t("a1bc"));
    }
}, [ [ "components/sms-verify-popup/index-create-component" ] ] ]);